/*! * GSAP 3.11.3 * https://greensock.com * * @license Copyright 2022, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t){return"string"==typeof t}function n(t){return"function"==typeof t}function s(t){return"number"==typeof t}function a(t){return void 0===t}function o(t){return"object"==typeof t}function u(t){return!1!==t}function h(){return"undefined"!=typeof window}function f(t){return n(t)||i(t)}function l(t){return(Mt=we(t,fe))&&Br}function c(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function p(t,e){return!e&&console.warn(t)}function _(t,e){return t&&(fe[t]=e)&&Mt&&(Mt[t]=e)||fe}function d(){return 0}function m(t){var e,r,i=t[0];if(o(i)||n(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=xe.length;r--&&!xe[r].targetTest(i););e=xe[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Qe(t[r],e)))||t.splice(r,1);return t}function g(t){return t._gsap||m(De(t))[0]._gsap}function v(t,e,r){return(r=t[e])&&n(r)?t[e]():a(r)&&t.getAttribute&&t.getAttribute(e)||r}function y(t,e){return(t=t.split(",")).forEach(e)||t}function x(t){return Math.round(1e5*t)/1e5||0}function T(t){return Math.round(1e7*t)/1e7||0}function w(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function b(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++is;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e}function R(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function z(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function F(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function B(t,e,r,i){return t._startAt&&(vt?t._startAt.revert(ce):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function L(t){return t._repeat?be(t._tTime,t=t.duration()+t._rDelay)*t:0}function I(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Y(t){return t._end=T(t._start+(t._tDur/Math.abs(t._ts||t._rts||Wt)||0))}function U(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=T(r._time-(0Wt)&&e.render(r,!0)),F(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur(n=Math.abs(n))&&(s=i,o=n);return s}function at(t){return z(t),t.scrollTrigger&&t.scrollTrigger.kill(!!vt),t.progress()<1&&Se(t,"onInterrupt"),t}function ot(t,e,r){return(6*(t+=t<0?1:1>16,t>>8&Ee,t&Ee]:0:Re.black;if(!_){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Re[t])_=Re[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(_=parseInt(t.substr(1,6),16))>>16,_>>8&Ee,_&Ee,parseInt(t.substr(7),16)/255];_=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ee,t&Ee]}else if("hsl"===t.substr(0,3))if(_=p=t.match(ie),e){if(~t.indexOf("="))return _=t.match(ne),r&&_.length<4&&(_[3]=1),_}else o=+_[0]%360/360,u=_[1]/100,i=2*(h=_[2]/100)-(n=h<=.5?h*(u+1):h+u-h*u),3<_.length&&(_[3]*=1),_[0]=ot(o+1/3,i,n),_[1]=ot(o,i,n),_[2]=ot(o-1/3,i,n);else _=t.match(ie)||Re.transparent;_=_.map(Number)}return e&&!p&&(i=_[0]/Ee,n=_[1]/Ee,a=_[2]/Ee,h=((f=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,f===l?o=u=0:(c=f-l,u=.5=Gt?h.endTime(!1):e._dur;return i(r)&&(isNaN(r)||r in u)?(a=r.charAt(0),o="%"===r.substr(-1),s=r.indexOf("="),"<"===a||">"===a?(0<=s&&(r=r.replace(/=/,"")),("<"===a?h._start:h.endTime(0<=h._repeat))+(parseFloat(r.substr(1))||0)*(o?(s<0?h:n).totalDuration()/100:1)):s<0?(r in u||(u[r]=f),u[r]):(a=parseFloat(r.charAt(s-1)+r.substr(s+1)),o&&n&&(a=a/100*(re(n)?n[0]:n).totalDuration()),1=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalDuration()||!v&&d)&&(l!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(s instanceof sr?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return i(t)?this.removeLabel(t):n(t)?this.killTweensOf(t):(R(this,t),t===this._recent&&(this._recent=this._last),F(this))},o.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=T(Be.time-(0e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},o.tweenTo=function(t,e){e=e||{};var r,i=this,n=ke(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,u=e.immediateRender,h=sr.to(i,A({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||Wt,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale());h._dur!==t&&j(h,t,0,1).render(h._time,!0,!0),r=1}a&&a.apply(h,o||[])}},e));return u?h.render(0):h},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,A({startAt:{time:ke(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),st(this,ke(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),st(this,ke(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Wt)},o.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return F(this)},o.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},o.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),F(this)},o.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=Gt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,N(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;j(s,s===xt&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},a.updateRoot=function(t){if(xt._ts&&(O(xt,I(t,xt)),kt=Be.frame),Be.frame>=ye){ye+=jt.autoSleep||120;var e=xt._first;if((!e||!e._ts)&&jt.autoSleep&&Be._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Be.sleep()}}},a}(Ge);function Ze(t,e,r,s,a,u){var h,f,l,c;if(ge[t]&&!1!==(h=new ge[t]).init(a,h.rawVars?e[t]:function(t,e,r,s,a){if(n(t)&&(t=rr(t,a,e,r,s)),!o(t)||t.style&&t.nodeType||re(t)||ee(t))return i(t)?rr(t,a,e,r,s):t;var u,h={};for(u in t)h[u]=rr(t[u],a,e,r,s);return h}(e[t],s,a,u,r),r,s,u)&&(r._pt=f=new yr(r._pt,a,t,0,1,h.render,h,0,h.priority),r!==Ct))for(l=r._ptLookup[r._targets.indexOf(a)],c=h._props.length;c--;)l[h._props[c]]=f;return h}function $e(t,e,r,i){var n,s,a=e.ease||i||"power1.inOut";if(re(e))s=r[t]||(r[t]=[]),e.forEach((function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:a})}));else for(n in e)s=r[n]||(r[n]=[]),"ease"===n||s.push({t:parseFloat(t),v:e[n],e:a})}A(He.prototype,{_lock:0,_hasPause:0,_forcing:0});var Je,Ke,tr=function(t,e,r,s,a,o,u,h,f,l){n(s)&&(s=s(a||0,t,o));var p,_=t[e],d="get"!==r?r:n(_)?f?t[e.indexOf("set")||!n(t["get"+e.substr(3)])?e:"get"+e.substr(3)](f):t[e]():_,m=n(_)?f?fr:hr:ur;if(i(s)&&(~s.indexOf("random(")&&(s=nt(s)),"="===s.charAt(1)&&(!(p=w(d,s)+(H(d)||0))&&0!==p||(s=p))),!l||d!==s||Ke)return isNaN(d*s)||""===s?(_||e in t||c(e,s),function(t,e,r,i,n,s,a){var o,u,h,f,l,c,p,_,d=new yr(this._pt,t,e,0,1,_r,null,n),m=0,g=0;for(d.b=r,d.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=nt(i)),s&&(s(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match(ae)||[];o=ae.exec(i);)f=o[0],l=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,d._pt={_next:d._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?w(c,f)-c:parseFloat(f)-c,m:h&&h<4?Math.round:0},m=ae.lastIndex);return d.c=m")})),l.duration();else{for(g in _={},D)"ease"===g||"easeEach"===g||$e(g,D[g],_,D.easeEach);for(g in _)for(L=_[g].sort((function(t,e){return t.t-e.t})),c=U=0;c=t._tDur||e<0)&&t.ratio===u&&(u&&z(t,1),r||vt||(Se(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(e){return e&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},a.resetTo=function(t,e,r,i){At||Be.wake(),this._ts||this.play();var n=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||er(this,n),function(t,e,r,i,n,s,a){var o,u,h,f,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,f=t._targets.length;f--;){if((o=h[f][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Ke=1,t.vars[e]="+=0",er(t,a),Ke=0,1;l.push(o)}for(f=l.length;f--;)(o=(u=l[f])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+s*o.c:i,o.c=r-o.s,u.e&&(u.e=x(r)+H(u.e)),u.b&&(u.b=o.s+H(u.b))}(this,t,e,r,i,this._ease(n/this._dur),n)?this.resetTo(t,e,r,i):(U(this,0),this.parent||E(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?at(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Je&&!0!==Je.vars.overwrite)._first||at(this),this.parent&&r!==this.timeline.totalDuration()&&j(this,this._dur*this.timeline._tDur/r,0,1),this}var n,s,a,o,u,h,f,l=this._targets,c=t?De(t):l,p=this._ptLookup,_=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(l,c))return"all"===e&&(this._pt=0),at(this);for(n=this._op=this._op||[],"all"!==e&&(i(e)&&(u={},y(e,(function(t){return u[t]=1})),e=u),e=function(t,e){var r,i,n,s,a=t[0]?g(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=we({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(l,e)),f=l.length;f--;)if(~c.indexOf(l[f]))for(u in s=p[f],"all"===e?(n[f]=e,o=s,a={}):(a=n[f]=n[f]||{},o=e),o)(h=s&&s[u])&&("kill"in h.d&&!0!==h.d.kill(u)||R(this,h,"_pt"),delete s[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&_&&at(this),this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return G(1,arguments)},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return G(2,arguments)},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return xt.killTweensOf(t,e,r)},n}(Ge);function ar(t,e,r){return t.setAttribute(e,r)}function or(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}A(sr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),y("staggerTo,staggerFrom,staggerFromTo",(function(t){sr[t]=function(){var e=new He,r=Ae.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var ur=function(t,e,r){return t[e]=r},hr=function(t,e,r){return t[e](r)},fr=function(t,e,r,i){return t[e](i.fp,r)},lr=function(t,e){return n(t[e])?hr:a(t[e])&&t.setAttribute?ar:ur},cr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},pr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},_r=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},dr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},mr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},gr=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?R(this,i,"_pt"):i.dep||(e=1),i=r;return!e},vr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},yr=(xr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=or,this.m=t,this.mt=r,this.tween=e},xr);function xr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||cr,this.d=a||this,this.set=o||ur,this.pr=u||0,(this._next=t)&&(t._prev=this)}function Tr(t){return(Or[t]||kr).map((function(t){return t()}))}function wr(){var t=Date.now(),e=[];2